package com.eudon.design_pattern.behavioral.state.state;

/**
 * @author eudon
 * @description 斗篷马里奥
 * @date 2025/9/3
 * @email syd19970616@gmail.com
 * @address <a href="https://gitee.com/eudon">Gitee</a>
 */
public class CapeMario implements IMarioState {
    private final MarioStateMachine stateMachine;

    public CapeMario(MarioStateMachine stateMachine) {
        this.stateMachine = stateMachine;
    }

    @Override
    public String getName() {
        return "cape mario";
    }

    @Override
    public void getMushRoom() {

    }

    @Override
    public void getCape() {

    }

    @Override
    public void getFire() {

    }

    @Override
    public void meetMonster() {
        stateMachine.setMarioState(SmallMario.class);
        stateMachine.setScore(stateMachine.getScore() - 200);
    }
}
